package com.swyc.osschat.Test.designMode.observer.impl;

import com.swyc.osschat.Test.designMode.observer.base.Observer;

/**
 * @description 具体观察者：微信用户
 * @Author: z156940l@outlook.com
 * @className WechatUser
 * @Date: 2022/6/28 9:27
 */
public class WechatUser implements Observer {
    private String name;

    public WechatUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String msg) {
        System.out.println(name+"收到了推送："+msg);
    }
}
